package com.erp.erp_mask.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import lombok.Data;

/**
 * @TableName t_purcheck
 */
@TableName(value = "t_purcheck")
@Data
public class TPurcheck implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer checkId;

    /**
     *
     */
    private String checkName;

    /**
     *
     */
    private Integer checkPrice;

    /**
     *
     */
    private Integer checkNumber;

    /**
     *
     */
    private Integer checkUserId;

    /**
     *
     */
    private String checkType;

    /**
     *
     */
    private String checkSupp;

    /**
     *
     */
    private String checkTory;

    /**
     *
     */
    private String checkCount;

    /**
     *
     */
    private Integer purState;


    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonDeserialize(using = LocalDateDeserializer.class)
    private LocalDate purDate;
    @TableField(exist = false)
    private String purReject;
    //    用户姓名
    @TableField(exist = false)
    private String name;
    private Integer userId;
    //    公司名
    @TableField(exist = false)
    private String supname;

    private Integer checkState;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}